<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::DMatch Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-attribs">Public Attributes</a> |
<a href="../../d7/db2/classcv_1_1DMatch-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::DMatch Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> » <a class="el" href="../../dc/d84/group__core__basic.html">Basic structures</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Class for matching keypoint descriptors.  
 <a href="../../d4/de0/classcv_1_1DMatch.html#details">More...</a></p>
<p><code>#include &lt;opencv2/core/types.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a546ddb9a87898f06e510e015a6de596e"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#a546ddb9a87898f06e510e015a6de596e">DMatch</a> ()</td></tr>
<tr class="separator:a546ddb9a87898f06e510e015a6de596e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abcedc39e3f9c605472793d81ff5eb318"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#abcedc39e3f9c605472793d81ff5eb318">DMatch</a> (int _queryIdx, int _trainIdx, float _distance)</td></tr>
<tr class="separator:abcedc39e3f9c605472793d81ff5eb318"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a43d07332011940086bae0ae4a43da06e"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#a43d07332011940086bae0ae4a43da06e">DMatch</a> (int _queryIdx, int _trainIdx, int _imgIdx, float _distance)</td></tr>
<tr class="separator:a43d07332011940086bae0ae4a43da06e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a61ebd9532acb52577d28c0dfefbcb660"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#a61ebd9532acb52577d28c0dfefbcb660">operator&lt;</a> (const <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &amp;m) const</td></tr>
<tr class="separator:a61ebd9532acb52577d28c0dfefbcb660"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a1cb9bee47b20ad96e16de28f4b9cbdf1"><td align="right" class="memItemLeft" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#a1cb9bee47b20ad96e16de28f4b9cbdf1">distance</a></td></tr>
<tr class="separator:a1cb9bee47b20ad96e16de28f4b9cbdf1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab9800c265dcb748a28aa1a2d4b45eea4"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#ab9800c265dcb748a28aa1a2d4b45eea4">imgIdx</a></td></tr>
<tr class="memdesc:ab9800c265dcb748a28aa1a2d4b45eea4"><td class="mdescLeft"> </td><td class="mdescRight">train image index  <a href="#ab9800c265dcb748a28aa1a2d4b45eea4">More...</a><br/></td></tr>
<tr class="separator:ab9800c265dcb748a28aa1a2d4b45eea4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a47475576327f6ba9cd39250881b4d330"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#a47475576327f6ba9cd39250881b4d330">queryIdx</a></td></tr>
<tr class="memdesc:a47475576327f6ba9cd39250881b4d330"><td class="mdescLeft"> </td><td class="mdescRight">query descriptor index  <a href="#a47475576327f6ba9cd39250881b4d330">More...</a><br/></td></tr>
<tr class="separator:a47475576327f6ba9cd39250881b4d330"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2320bcc822280c8a416b85f80f5a4453"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de0/classcv_1_1DMatch.html#a2320bcc822280c8a416b85f80f5a4453">trainIdx</a></td></tr>
<tr class="memdesc:a2320bcc822280c8a416b85f80f5a4453"><td class="mdescLeft"> </td><td class="mdescRight">train descriptor index  <a href="#a2320bcc822280c8a416b85f80f5a4453">More...</a><br/></td></tr>
<tr class="separator:a2320bcc822280c8a416b85f80f5a4453"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class for matching keypoint descriptors. </p>
<p>query descriptor index, train descriptor index, train image index, and distance between descriptors. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a546ddb9a87898f06e510e015a6de596e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a546ddb9a87898f06e510e015a6de596e">◆ </a></span>DMatch() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::DMatch::DMatch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname">_queryIdx, _trainIdx, _distance</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname">_queryIdx, _trainIdx, _imgIdx, _distance</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="abcedc39e3f9c605472793d81ff5eb318"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcedc39e3f9c605472793d81ff5eb318">◆ </a></span>DMatch() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::DMatch::DMatch </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_queryIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_trainIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>_distance</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname">_queryIdx, _trainIdx, _distance</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname">_queryIdx, _trainIdx, _imgIdx, _distance</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="a43d07332011940086bae0ae4a43da06e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43d07332011940086bae0ae4a43da06e">◆ </a></span>DMatch() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::DMatch::DMatch </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_queryIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_trainIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>_imgIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>_distance</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname"></td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname">_queryIdx, _trainIdx, _distance</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>&lt;DMatch object&gt;</td><td>=</td><td>cv.DMatch(</td><td class="paramname">_queryIdx, _trainIdx, _imgIdx, _distance</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a61ebd9532acb52577d28c0dfefbcb660"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61ebd9532acb52577d28c0dfefbcb660">◆ </a></span>operator&lt;()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::DMatch::operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &amp; </td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a1cb9bee47b20ad96e16de28f4b9cbdf1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cb9bee47b20ad96e16de28f4b9cbdf1">◆ </a></span>distance</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float cv::DMatch::distance</td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="ab9800c265dcb748a28aa1a2d4b45eea4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9800c265dcb748a28aa1a2d4b45eea4">◆ </a></span>imgIdx</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::DMatch::imgIdx</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>train image index </p>
</div>
</div>
<a id="a47475576327f6ba9cd39250881b4d330"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47475576327f6ba9cd39250881b4d330">◆ </a></span>queryIdx</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::DMatch::queryIdx</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>query descriptor index </p>
</div>
</div>
<a id="a2320bcc822280c8a416b85f80f5a4453"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2320bcc822280c8a416b85f80f5a4453">◆ </a></span>trainIdx</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::DMatch::trainIdx</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>train descriptor index </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../db/dfc/modules_2core_2include_2opencv2_2core_2types_8hpp.html">types.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:42 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
